#if !defined (GENERAL_H_8CBAD4BE_8078_455A_9073_20CEF563CC0A_)
#define GENERAL_H_8CBAD4BE_8078_455A_9073_20CEF563CC0A_

#pragma once // in case the compiler supports it

// registry functions
bool GetUserValue (const LPTSTR szSubkey, const LPTSTR szValue, DWORD dwType, void *pDest, DWORD dwSize);
bool GetSysValue  (const LPTSTR szSubkey, const LPTSTR szValue, DWORD dwType, void *pDest, DWORD dwSize);
bool SetUserValue (const LPTSTR szSubkey, const LPTSTR szValue, DWORD dwType, void *pDest, DWORD dwSize);
bool SetSysValue  (const LPTSTR szSubkey, const LPTSTR szValue, DWORD dwType, void *pDest, DWORD dwSize);

// command line functions
bool GetCmdLineValue (const LPTSTR szArg, LPTSTR szDest, size_t nLen);

#endif  // GENERAL_H